package com.tnl.app.dao;

import com.tnl.app.entity.SysPicture;
import com.tnl.base.BaseDAO;
import org.springframework.stereotype.Repository;

/**
 * @author: Jerry
 * @date: 2021/1/18
 */
@Repository
public class SysPictureDao {

    final String SQL_GET_BY_ID = "select * from sys_picture where id = ?";

    public SysPicture getById(String id) {
        return BaseDAO.queryForObject(SysPicture.class, SQL_GET_BY_ID, id);
    }
}
